package com.xiaohudie.thread;

/**
 * @Author xiao hu die
 * @Date 2022/2/20 15:39
 * @Version 1.0
 */
public class Thread2 implements Runnable {

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            String name = Thread.currentThread().getName();
            System.out.println("线程名字:" + name);

        }
    }
}
